package net.fpeg.kotlin.msa.auth.dao

import net.fpeg.kotlin.msa.auth.entity.User
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository

@Repository
interface UserDao : JpaRepository<User, Long> {
    fun getById(id: Long): User?
    fun getByUsername(username: String): User
    fun countByUsername(username: String): Long
}